package com.itheima.mapper;

import com.itheima.pojo.Dept;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.web.bind.annotation.DeleteMapping;

import java.util.List;

@Mapper
public interface DeptMapper {

    List<Dept> findAll();

    void deleteById(Integer id);

    void save(Dept dept);

    Dept findById(Integer id);

    void update(Dept dept);
}
